import axios from 'axios'

const ajax = axios.create({
  baseURL: '/api'
})



ajax.interceptors.request.use(config=>{
  return config
})

ajax.interceptors.response.use(result =>{
  return result.data
},err=>{
  console.log('请求失败',err)
})


export default ajax